package com.qijian.business.domain.query;

import java.util.Date;
import java.util.Set;

import com.fasterxml.jackson.annotation.JsonFormat;

import com.qijian.common.utils.mybatis.WhereType;
import com.qijian.common.utils.mybatis.WhereTypeEnum;
import lombok.Data;
import lombok.ToString;
import com.baomidou.mybatisplus.annotation.TableName;


/**
 * 质检单审核对象 查询条件类
 *
 * @author qijian
 * @date 2021-09-10
 */

@Data
@ToString
@TableName("purm_quality_check")
public class QualityCheckQuery {

    @WhereType(tableName = "purm_quality_check", filed = "id")
    private Long id;
    @WhereType(tableName = "purm_quality_check", filed = "quality_id")
    private Long qualityId;
    @WhereType(tableName = "purm_quality_check", filed = "check_user_id")
    private Integer checkUserId;
    @WhereType(tableName = "purm_quality_check", filed = "check_user_name")
    private String checkUserName;
    @WhereType(tableName = "purm_quality_check", filed = "check_time", type = WhereTypeEnum.BETWEEN)
    private Date[] checkTime;
    @WhereType(tableName = "purm_quality_check", filed = "check_result")
    private Integer checkResult;
    @WhereType(tableName = "purm_quality_check", filed = "check_remark")
    private String checkRemark;

    //质检表查询条件 ⬇️
    @WhereType(tableName = "purm_quality")
    private Long applicantId;
    @WhereType(tableName = "purm_quality", type = WhereTypeEnum.LIKE)
    private String applicantName;
    @WhereType(tableName = "purm_quality", type = WhereTypeEnum.BETWEEN)
    private Date[] applyTime;
    @WhereType(tableName = "purm_quality", type = WhereTypeEnum.BETWEEN)
    private Date[] qualityTime;
    @WhereType(tableName = "purm_quality")
    private Long qualityUserId;
    @WhereType(tableName = "purm_quality")
    private String qualityUserName;
    @WhereType(tableName = "purm_quality", type = WhereTypeEnum.LIKE)
    private String number;
    @WhereType(tableName = "purm_quality", type = WhereTypeEnum.LIKE)
    private String name;
    @WhereType(tableName = "purm_quality")
    private Long sourceId;
    @WhereType(tableName = "purm_quality", type = WhereTypeEnum.LIKE)
    private String sourceName;

    @WhereType(filed = "id", type = WhereTypeEnum.IN)
    private Set<Long> ids;
}
